/*function getHotThreads(){
	$.ajax({
		url:"threads/readHotThreads.do",
		type:"POST",
		dataType:"json",
		success:,
	});	
}*/
getHotThreads(calback);
function calback(jsonData){
	var hotThreads = jsonData;
	for(index in hotThreads){
		var threads = hotThreads[index];
//		var eleP = $("<p>");
		var eleA = $("<a>");
		if(index==0){
			eleA.attr("class", "list-group-item active");
		}else{
			eleA.attr("class","list-group-item");
		}
		eleA.attr("href", "threads/"+threads.threadsID+"/read.do");
		eleA.text(threads.threadsName);
//		eleP.append(eleA);
		$("#hotThreads").append(eleA);
	}
}